package com.lzm.ydpt.entity;

public class ValueBean {
    private long value_id;
    private String value_name;
    private boolean isSelect;

    public ValueBean(long value_id, String value_name, boolean isSelect) {
        this.value_id = value_id;
        this.value_name = value_name;
        this.isSelect = isSelect;
    }

    /**
     * 重写hashCode，方便集合的操作
     */
    @Override
    public int hashCode() {
        return (int) (this.value_id + this.value_id);
    }

    /**
     * 重写equals，只要tagid相同就默认是通对象，才认为这个对象是想等的
     */
    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof ValueBean)) {
            return false;
        }
        ValueBean tempBean = (ValueBean) obj;
        return (this.value_id == tempBean.value_id);
    }

    public long getValue_id() {
        return value_id;
    }

    public void setValue_id(long value_id) {
        this.value_id = value_id;
    }

    public String getValue_name() {
        return value_name;
    }

    public void setValue_name(String value_name) {
        this.value_name = value_name;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }
}